package javathinking.chapter6;

import java.nio.charset.Charset;

public class TestEncoding {

    public static void main(String[] args) {
        String message  ="邓高峰";
        byte[] gb2312s = message.getBytes(Charset.forName("GB2312"));
        byte[] gbks = message.getBytes(Charset.forName("GBK"));
        System.out.println(gb2312s.length);
        System.out.println(gbks.length);
    }
}
